package com.bobo.service.impl;

import com.bobo.dao.UserDao;
import com.bobo.pojo.User;
import com.bobo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;

    @Override
    public User get(Integer id) {
        return new User("1","lucy");
    }

    @Override
    public int add(User user) {
        return userDao.add(user);
    }
}
